<template>
  <div>
    <!-- 面包屑导航  名字是在路由里配的在首页的时候隐藏面包屑 -->
    <el-breadcrumb
      v-if="$route.path !== '/welcome'"
      separator-class="el-icon-arrow-right"
    >
      <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>{{ $route.meta.authName }}</el-breadcrumb-item>
      <el-breadcrumb-item>{{ $route.meta.name }}</el-breadcrumb-item>
    </el-breadcrumb>
  </div>
</template>

<script>
export default {
  created() {
    // console.log(this.$route.path);
  },
};
</script>

<style lang='less' scoped>
.el-breadcrumb {
  margin-bottom: 20px;
}
</style>
